.class public Lcom/hyphenate/chat/EMGroupManager;
.super Ljava/lang/Object;


# static fields
.field private static TAG:Ljava/lang/String;


# instance fields
.field emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

.field groupChangeListeners:Ljava/util/List;

.field listenerImpl:Lcom/hyphenate/chat/adapter/EMAGroupManagerListener;

.field mClient:Lcom/hyphenate/chat/EMClient;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const-string/jumbo v0, "group"

    sput-object v0, Lcom/hyphenate/chat/EMGroupManager;->TAG:Ljava/lang/String;

    return-void
.end method

.method constructor <init>(Lcom/hyphenate/chat/EMClient;Lcom/hyphenate/chat/adapter/EMAGroupManager;)V
    .locals 2

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Lcom/hyphenate/chat/EMGroupManager$1;

    invoke-direct {v0, p0}, Lcom/hyphenate/chat/EMGroupManager$1;-><init>(Lcom/hyphenate/chat/EMGroupManager;)V

    iput-object v0, p0, Lcom/hyphenate/chat/EMGroupManager;->listenerImpl:Lcom/hyphenate/chat/adapter/EMAGroupManagerListener;

    iput-object p2, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    iput-object p1, p0, Lcom/hyphenate/chat/EMGroupManager;->mClient:Lcom/hyphenate/chat/EMClient;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    invoke-static {v0}, Ljava/util/Collections;->synchronizedList(Ljava/util/List;)Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcom/hyphenate/chat/EMGroupManager;->groupChangeListeners:Ljava/util/List;

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    iget-object v1, p0, Lcom/hyphenate/chat/EMGroupManager;->listenerImpl:Lcom/hyphenate/chat/adapter/EMAGroupManagerListener;

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->addListener(Lcom/hyphenate/chat/adapter/EMAGroupManagerListener;)V

    return-void
.end method

.method private createGroup(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;ILjava/lang/String;)Lcom/hyphenate/chat/EMGroup;
    .locals 7

    new-instance v4, Lcom/hyphenate/chat/adapter/EMAGroupSetting;

    invoke-direct {v4, p1, p5}, Lcom/hyphenate/chat/adapter/EMAGroupSetting;-><init>(II)V

    new-instance v5, Ljava/util/ArrayList;

    invoke-direct {v5}, Ljava/util/ArrayList;-><init>()V

    invoke-static {v5, p4}, Ljava/util/Collections;->addAll(Ljava/util/Collection;[Ljava/lang/Object;)Z

    new-instance v6, Lcom/hyphenate/chat/adapter/EMAError;

    invoke-direct {v6}, Lcom/hyphenate/chat/adapter/EMAError;-><init>()V

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    move-object v1, p2

    move-object v2, p3

    move-object v3, p6

    invoke-virtual/range {v0 .. v6}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->createGroup(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/chat/adapter/EMAGroupSetting;Ljava/util/List;Lcom/hyphenate/chat/adapter/EMAError;)Lcom/hyphenate/chat/adapter/EMAGroup;

    move-result-object v0

    invoke-direct {p0, v6}, Lcom/hyphenate/chat/EMGroupManager;->handleError(Lcom/hyphenate/chat/adapter/EMAError;)V

    new-instance v1, Lcom/hyphenate/chat/EMGroup;

    invoke-direct {v1, v0}, Lcom/hyphenate/chat/EMGroup;-><init>(Lcom/hyphenate/chat/adapter/EMAGroup;)V

    return-object v1
.end method

.method private handleError(Lcom/hyphenate/chat/adapter/EMAError;)V
    .locals 1

    invoke-virtual {p1}, Lcom/hyphenate/chat/adapter/EMAError;->errCode()I

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Lcom/hyphenate/exceptions/HyphenateException;

    invoke-direct {v0, p1}, Lcom/hyphenate/exceptions/HyphenateException;-><init>(Lcom/hyphenate/chat/adapter/EMAError;)V

    throw v0

    :cond_0
    return-void
.end method


# virtual methods
.method public acceptApplication(Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    new-instance v0, Lcom/hyphenate/chat/adapter/EMAError;

    invoke-direct {v0}, Lcom/hyphenate/chat/adapter/EMAError;-><init>()V

    iget-object v1, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    invoke-virtual {v1, p2, p1, v0}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->acceptJoinGroupApplication(Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/chat/adapter/EMAError;)V

    invoke-direct {p0, v0}, Lcom/hyphenate/chat/EMGroupManager;->handleError(Lcom/hyphenate/chat/adapter/EMAError;)V

    return-void
.end method

.method public acceptInvitation(Ljava/lang/String;Ljava/lang/String;)Lcom/hyphenate/chat/EMGroup;
    .locals 2

    new-instance v0, Lcom/hyphenate/chat/adapter/EMAError;

    invoke-direct {v0}, Lcom/hyphenate/chat/adapter/EMAError;-><init>()V

    iget-object v1, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    if-nez p2, :cond_0

    const-string/jumbo p2, ""

    :cond_0
    invoke-virtual {v1, p1, p2, v0}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->acceptInvitationFromGroup(Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/chat/adapter/EMAError;)Lcom/hyphenate/chat/adapter/EMAGroup;

    move-result-object v1

    invoke-direct {p0, v0}, Lcom/hyphenate/chat/EMGroupManager;->handleError(Lcom/hyphenate/chat/adapter/EMAError;)V

    new-instance v0, Lcom/hyphenate/chat/EMGroup;

    invoke-direct {v0, v1}, Lcom/hyphenate/chat/EMGroup;-><init>(Lcom/hyphenate/chat/adapter/EMAGroup;)V

    return-object v0
.end method

.method public addGroupChangeListener(Lcom/hyphenate/EMGroupChangeListener;)V
    .locals 3

    sget-object v0, Lcom/hyphenate/chat/EMGroupManager;->TAG:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "add group change listener:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroupManager;->groupChangeListeners:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroupManager;->groupChangeListeners:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_0
    return-void
.end method

.method public addUsersToGroup(Ljava/lang/String;[Ljava/lang/String;)V
    .locals 4

    new-instance v0, Lcom/hyphenate/chat/adapter/EMAError;

    invoke-direct {v0}, Lcom/hyphenate/chat/adapter/EMAError;-><init>()V

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    invoke-static {v1, p2}, Ljava/util/Collections;->addAll(Ljava/util/Collection;[Ljava/lang/Object;)Z

    iget-object v2, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    const-string/jumbo v3, "welcome"

    invoke-virtual {v2, p1, v1, v3, v0}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->addGroupMembers(Ljava/lang/String;Ljava/util/List;Ljava/lang/String;Lcom/hyphenate/chat/adapter/EMAError;)Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-direct {p0, v0}, Lcom/hyphenate/chat/EMGroupManager;->handleError(Lcom/hyphenate/chat/adapter/EMAError;)V

    return-void
.end method

.method public applyJoinToGroup(Ljava/lang/String;Ljava/lang/String;)V
    .locals 3

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroupManager;->mClient:Lcom/hyphenate/chat/EMClient;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->getCurrentUser()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Lcom/hyphenate/chat/adapter/EMAError;

    invoke-direct {v1}, Lcom/hyphenate/chat/adapter/EMAError;-><init>()V

    iget-object v2, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    invoke-virtual {v2, p1, v0, p2, v1}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->applyJoinPublicGroup(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/chat/adapter/EMAError;)Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-direct {p0, v1}, Lcom/hyphenate/chat/EMGroupManager;->handleError(Lcom/hyphenate/chat/adapter/EMAError;)V

    return-void
.end method

.method public asyncAcceptApplication(Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V
    .locals 2

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    new-instance v1, Lcom/hyphenate/chat/EMGroupManager$16;

    invoke-direct {v1, p0, p1, p2, p3}, Lcom/hyphenate/chat/EMGroupManager$16;-><init>(Lcom/hyphenate/chat/EMGroupManager;Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMClient;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public asyncAcceptInvitation(Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/EMValueCallBack;)V
    .locals 2

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    new-instance v1, Lcom/hyphenate/chat/EMGroupManager$14;

    invoke-direct {v1, p0, p1, p2, p3}, Lcom/hyphenate/chat/EMGroupManager$14;-><init>(Lcom/hyphenate/chat/EMGroupManager;Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/EMValueCallBack;)V

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMClient;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public asyncAddUsersToGroup(Ljava/lang/String;[Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V
    .locals 2

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    new-instance v1, Lcom/hyphenate/chat/EMGroupManager$4;

    invoke-direct {v1, p0, p1, p2, p3}, Lcom/hyphenate/chat/EMGroupManager$4;-><init>(Lcom/hyphenate/chat/EMGroupManager;Ljava/lang/String;[Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMClient;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public asyncApplyJoinToGroup(Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V
    .locals 2

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    new-instance v1, Lcom/hyphenate/chat/EMGroupManager$19;

    invoke-direct {v1, p0, p1, p2, p3}, Lcom/hyphenate/chat/EMGroupManager$19;-><init>(Lcom/hyphenate/chat/EMGroupManager;Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMClient;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public asyncBlockGroupMessage(Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V
    .locals 2

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    new-instance v1, Lcom/hyphenate/chat/EMGroupManager$20;

    invoke-direct {v1, p0, p1, p2}, Lcom/hyphenate/chat/EMGroupManager$20;-><init>(Lcom/hyphenate/chat/EMGroupManager;Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMClient;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public asyncBlockUser(Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V
    .locals 2

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    new-instance v1, Lcom/hyphenate/chat/EMGroupManager$22;

    invoke-direct {v1, p0, p1, p2, p3}, Lcom/hyphenate/chat/EMGroupManager$22;-><init>(Lcom/hyphenate/chat/EMGroupManager;Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMClient;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public asyncChangeGroupDescription(Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V
    .locals 2

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    new-instance v1, Lcom/hyphenate/chat/EMGroupManager$13;

    invoke-direct {v1, p0, p1, p2, p3}, Lcom/hyphenate/chat/EMGroupManager$13;-><init>(Lcom/hyphenate/chat/EMGroupManager;Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMClient;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public asyncChangeGroupName(Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V
    .locals 2

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    new-instance v1, Lcom/hyphenate/chat/EMGroupManager$12;

    invoke-direct {v1, p0, p1, p2, p3}, Lcom/hyphenate/chat/EMGroupManager$12;-><init>(Lcom/hyphenate/chat/EMGroupManager;Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMClient;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public asyncCreateGroup(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/chat/EMGroupManager$EMGroupOptions;Lcom/hyphenate/EMValueCallBack;)V
    .locals 9

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v8

    new-instance v0, Lcom/hyphenate/chat/EMGroupManager$2;

    move-object v1, p0

    move-object v2, p1

    move-object v3, p2

    move-object v4, p3

    move-object v5, p4

    move-object v6, p5

    move-object v7, p6

    invoke-direct/range {v0 .. v7}, Lcom/hyphenate/chat/EMGroupManager$2;-><init>(Lcom/hyphenate/chat/EMGroupManager;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/chat/EMGroupManager$EMGroupOptions;Lcom/hyphenate/EMValueCallBack;)V

    invoke-virtual {v8, v0}, Lcom/hyphenate/chat/EMClient;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public asyncDeclineApplication(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V
    .locals 7

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v6

    new-instance v0, Lcom/hyphenate/chat/EMGroupManager$17;

    move-object v1, p0

    move-object v2, p1

    move-object v3, p2

    move-object v4, p3

    move-object v5, p4

    invoke-direct/range {v0 .. v5}, Lcom/hyphenate/chat/EMGroupManager$17;-><init>(Lcom/hyphenate/chat/EMGroupManager;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V

    invoke-virtual {v6, v0}, Lcom/hyphenate/chat/EMClient;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public asyncDeclineInvitation(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V
    .locals 7

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v6

    new-instance v0, Lcom/hyphenate/chat/EMGroupManager$15;

    move-object v1, p0

    move-object v2, p1

    move-object v3, p2

    move-object v4, p3

    move-object v5, p4

    invoke-direct/range {v0 .. v5}, Lcom/hyphenate/chat/EMGroupManager$15;-><init>(Lcom/hyphenate/chat/EMGroupManager;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V

    invoke-virtual {v6, v0}, Lcom/hyphenate/chat/EMClient;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public asyncDestroyGroup(Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V
    .locals 2

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    new-instance v1, Lcom/hyphenate/chat/EMGroupManager$3;

    invoke-direct {v1, p0, p1, p2}, Lcom/hyphenate/chat/EMGroupManager$3;-><init>(Lcom/hyphenate/chat/EMGroupManager;Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMClient;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public asyncGetBlockedUsers(Ljava/lang/String;Lcom/hyphenate/EMValueCallBack;)V
    .locals 2

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    new-instance v1, Lcom/hyphenate/chat/EMGroupManager$24;

    invoke-direct {v1, p0, p1, p2}, Lcom/hyphenate/chat/EMGroupManager$24;-><init>(Lcom/hyphenate/chat/EMGroupManager;Ljava/lang/String;Lcom/hyphenate/EMValueCallBack;)V

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMClient;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public asyncGetGroupFromServer(Ljava/lang/String;Lcom/hyphenate/EMValueCallBack;)V
    .locals 2

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    new-instance v1, Lcom/hyphenate/chat/EMGroupManager$7;

    invoke-direct {v1, p0, p1, p2}, Lcom/hyphenate/chat/EMGroupManager$7;-><init>(Lcom/hyphenate/chat/EMGroupManager;Ljava/lang/String;Lcom/hyphenate/EMValueCallBack;)V

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMClient;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method asyncGetGroupsFromServer(Lcom/hyphenate/EMValueCallBack;)V
    .locals 2

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    new-instance v1, Lcom/hyphenate/chat/EMGroupManager$8;

    invoke-direct {v1, p0, p1}, Lcom/hyphenate/chat/EMGroupManager$8;-><init>(Lcom/hyphenate/chat/EMGroupManager;Lcom/hyphenate/EMValueCallBack;)V

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMClient;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public asyncGetJoinedGroupsFromServer(Lcom/hyphenate/EMValueCallBack;)V
    .locals 2

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    new-instance v1, Lcom/hyphenate/chat/EMGroupManager$9;

    invoke-direct {v1, p0, p1}, Lcom/hyphenate/chat/EMGroupManager$9;-><init>(Lcom/hyphenate/chat/EMGroupManager;Lcom/hyphenate/EMValueCallBack;)V

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMClient;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public asyncGetPublicGroupsFromServer(ILjava/lang/String;Lcom/hyphenate/EMValueCallBack;)V
    .locals 2

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    new-instance v1, Lcom/hyphenate/chat/EMGroupManager$10;

    invoke-direct {v1, p0, p1, p2, p3}, Lcom/hyphenate/chat/EMGroupManager$10;-><init>(Lcom/hyphenate/chat/EMGroupManager;ILjava/lang/String;Lcom/hyphenate/EMValueCallBack;)V

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMClient;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public asyncInviteUser(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V
    .locals 7

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v6

    new-instance v0, Lcom/hyphenate/chat/EMGroupManager$18;

    move-object v1, p0

    move-object v2, p1

    move-object v3, p2

    move-object v4, p3

    move-object v5, p4

    invoke-direct/range {v0 .. v5}, Lcom/hyphenate/chat/EMGroupManager$18;-><init>(Lcom/hyphenate/chat/EMGroupManager;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V

    invoke-virtual {v6, v0}, Lcom/hyphenate/chat/EMClient;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public asyncJoinGroup(Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V
    .locals 2

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    new-instance v1, Lcom/hyphenate/chat/EMGroupManager$11;

    invoke-direct {v1, p0, p1, p2}, Lcom/hyphenate/chat/EMGroupManager$11;-><init>(Lcom/hyphenate/chat/EMGroupManager;Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMClient;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public asyncLeaveGroup(Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V
    .locals 2

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    new-instance v1, Lcom/hyphenate/chat/EMGroupManager$6;

    invoke-direct {v1, p0, p1, p2}, Lcom/hyphenate/chat/EMGroupManager$6;-><init>(Lcom/hyphenate/chat/EMGroupManager;Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMClient;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public asyncRemoveUserFromGroup(Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V
    .locals 2

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    new-instance v1, Lcom/hyphenate/chat/EMGroupManager$5;

    invoke-direct {v1, p0, p1, p2, p3}, Lcom/hyphenate/chat/EMGroupManager$5;-><init>(Lcom/hyphenate/chat/EMGroupManager;Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMClient;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public asyncUnblockGroupMessage(Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V
    .locals 2

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    new-instance v1, Lcom/hyphenate/chat/EMGroupManager$21;

    invoke-direct {v1, p0, p1, p2}, Lcom/hyphenate/chat/EMGroupManager$21;-><init>(Lcom/hyphenate/chat/EMGroupManager;Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMClient;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public asyncUnblockUser(Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V
    .locals 2

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    new-instance v1, Lcom/hyphenate/chat/EMGroupManager$23;

    invoke-direct {v1, p0, p1, p2, p3}, Lcom/hyphenate/chat/EMGroupManager$23;-><init>(Lcom/hyphenate/chat/EMGroupManager;Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/EMCallBack;)V

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/EMClient;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public blockGroupMessage(Ljava/lang/String;)V
    .locals 2

    new-instance v0, Lcom/hyphenate/chat/adapter/EMAError;

    invoke-direct {v0}, Lcom/hyphenate/chat/adapter/EMAError;-><init>()V

    iget-object v1, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    invoke-virtual {v1, p1, v0}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->blockGroupMessage(Ljava/lang/String;Lcom/hyphenate/chat/adapter/EMAError;)Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-direct {p0, v0}, Lcom/hyphenate/chat/EMGroupManager;->handleError(Lcom/hyphenate/chat/adapter/EMAError;)V

    return-void
.end method

.method public blockUser(Ljava/lang/String;Ljava/lang/String;)V
    .locals 4

    sget-object v0, Lcom/hyphenate/chat/EMGroupManager;->TAG:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "block user for groupid:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, " username:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    new-instance v0, Lcom/hyphenate/chat/adapter/EMAError;

    invoke-direct {v0}, Lcom/hyphenate/chat/adapter/EMAError;-><init>()V

    const-string/jumbo v1, ""

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    invoke-interface {v2, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v3, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    invoke-virtual {v3, p1, v2, v0, v1}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->blockGroupMembers(Ljava/lang/String;Ljava/util/List;Lcom/hyphenate/chat/adapter/EMAError;Ljava/lang/String;)Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-direct {p0, v0}, Lcom/hyphenate/chat/EMGroupManager;->handleError(Lcom/hyphenate/chat/adapter/EMAError;)V

    return-void
.end method

.method public changeGroupDescription(Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    new-instance v0, Lcom/hyphenate/chat/adapter/EMAError;

    invoke-direct {v0}, Lcom/hyphenate/chat/adapter/EMAError;-><init>()V

    iget-object v1, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    invoke-virtual {v1, p1, p2, v0}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->changeGroupDescription(Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/chat/adapter/EMAError;)Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-direct {p0, v0}, Lcom/hyphenate/chat/EMGroupManager;->handleError(Lcom/hyphenate/chat/adapter/EMAError;)V

    return-void
.end method

.method public changeGroupName(Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    new-instance v0, Lcom/hyphenate/chat/adapter/EMAError;

    invoke-direct {v0}, Lcom/hyphenate/chat/adapter/EMAError;-><init>()V

    iget-object v1, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    invoke-virtual {v1, p1, p2, v0}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->changeGroupSubject(Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/chat/adapter/EMAError;)Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-direct {p0, v0}, Lcom/hyphenate/chat/EMGroupManager;->handleError(Lcom/hyphenate/chat/adapter/EMAError;)V

    return-void
.end method

.method public createGroup(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/chat/EMGroupManager$EMGroupOptions;)Lcom/hyphenate/chat/EMGroup;
    .locals 7

    const/4 v1, 0x0

    sget-object v0, Lcom/hyphenate/chat/EMGroupManager$25;->$SwitchMap$com$hyphenate$chat$EMGroupManager$EMGroupStyle:[I

    iget-object v2, p5, Lcom/hyphenate/chat/EMGroupManager$EMGroupOptions;->style:Lcom/hyphenate/chat/EMGroupManager$EMGroupStyle;

    invoke-virtual {v2}, Lcom/hyphenate/chat/EMGroupManager$EMGroupStyle;->ordinal()I

    move-result v2

    aget v0, v0, v2

    packed-switch v0, :pswitch_data_0

    :goto_0
    :pswitch_0
    iget v5, p5, Lcom/hyphenate/chat/EMGroupManager$EMGroupOptions;->maxUsers:I

    move-object v0, p0

    move-object v2, p1

    move-object v3, p2

    move-object v4, p3

    move-object v6, p4

    invoke-direct/range {v0 .. v6}, Lcom/hyphenate/chat/EMGroupManager;->createGroup(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;ILjava/lang/String;)Lcom/hyphenate/chat/EMGroup;

    move-result-object v0

    return-object v0

    :pswitch_1
    const/4 v1, 0x1

    goto :goto_0

    :pswitch_2
    const/4 v1, 0x2

    goto :goto_0

    :pswitch_3
    const/4 v1, 0x3

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method public declineApplication(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    new-instance v0, Lcom/hyphenate/chat/adapter/EMAError;

    invoke-direct {v0}, Lcom/hyphenate/chat/adapter/EMAError;-><init>()V

    iget-object v1, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    invoke-virtual {v1, p2, p1, p3, v0}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->declineJoinGroupApplication(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/chat/adapter/EMAError;)V

    invoke-direct {p0, v0}, Lcom/hyphenate/chat/EMGroupManager;->handleError(Lcom/hyphenate/chat/adapter/EMAError;)V

    return-void
.end method

.method public declineInvitation(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    new-instance v0, Lcom/hyphenate/chat/adapter/EMAError;

    invoke-direct {v0}, Lcom/hyphenate/chat/adapter/EMAError;-><init>()V

    iget-object v1, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    if-nez p2, :cond_0

    const-string/jumbo p2, ""

    :cond_0
    if-nez p3, :cond_1

    const-string/jumbo p3, ""

    :cond_1
    invoke-virtual {v1, p1, p2, p3, v0}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->declineInvitationFromGroup(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/chat/adapter/EMAError;)V

    invoke-direct {p0, v0}, Lcom/hyphenate/chat/EMGroupManager;->handleError(Lcom/hyphenate/chat/adapter/EMAError;)V

    return-void
.end method

.method public destroyGroup(Ljava/lang/String;)V
    .locals 2

    new-instance v0, Lcom/hyphenate/chat/adapter/EMAError;

    invoke-direct {v0}, Lcom/hyphenate/chat/adapter/EMAError;-><init>()V

    iget-object v1, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    invoke-virtual {v1, p1, v0}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->destroyGroup(Ljava/lang/String;Lcom/hyphenate/chat/adapter/EMAError;)Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v1

    invoke-virtual {v1}, Lcom/hyphenate/chat/EMClient;->chatManager()Lcom/hyphenate/chat/EMChatManager;

    move-result-object v1

    iget-object v1, v1, Lcom/hyphenate/chat/EMChatManager;->caches:Ljava/util/Map;

    invoke-interface {v1, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    invoke-direct {p0, v0}, Lcom/hyphenate/chat/EMGroupManager;->handleError(Lcom/hyphenate/chat/adapter/EMAError;)V

    return-void
.end method

.method public getAllGroups()Ljava/util/List;
    .locals 4

    new-instance v0, Lcom/hyphenate/chat/adapter/EMAError;

    invoke-direct {v0}, Lcom/hyphenate/chat/adapter/EMAError;-><init>()V

    iget-object v1, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    invoke-virtual {v1, v0}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->allMyGroups(Lcom/hyphenate/chat/adapter/EMAError;)Ljava/util/List;

    move-result-object v0

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/chat/adapter/EMAGroup;

    new-instance v3, Lcom/hyphenate/chat/EMGroup;

    invoke-direct {v3, v0}, Lcom/hyphenate/chat/EMGroup;-><init>(Lcom/hyphenate/chat/adapter/EMAGroup;)V

    invoke-interface {v1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_0
    invoke-static {v1}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;

    move-result-object v0

    return-object v0
.end method

.method public getBlockedUsers(Ljava/lang/String;)Ljava/util/List;
    .locals 3

    sget-object v0, Lcom/hyphenate/chat/EMGroupManager;->TAG:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "get blocked users for group:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    new-instance v0, Lcom/hyphenate/chat/adapter/EMAError;

    invoke-direct {v0}, Lcom/hyphenate/chat/adapter/EMAError;-><init>()V

    iget-object v1, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    invoke-virtual {v1, p1, v0}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->fetchGroupBans(Ljava/lang/String;Lcom/hyphenate/chat/adapter/EMAError;)Ljava/util/List;

    move-result-object v1

    invoke-direct {p0, v0}, Lcom/hyphenate/chat/EMGroupManager;->handleError(Lcom/hyphenate/chat/adapter/EMAError;)V

    return-object v1
.end method

.method public getGroup(Ljava/lang/String;)Lcom/hyphenate/chat/EMGroup;
    .locals 3

    new-instance v0, Lcom/hyphenate/chat/adapter/EMAError;

    invoke-direct {v0}, Lcom/hyphenate/chat/adapter/EMAError;-><init>()V

    iget-object v1, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    invoke-virtual {v1, v0}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->allMyGroups(Lcom/hyphenate/chat/adapter/EMAError;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMAGroup;->groupId()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    new-instance v1, Lcom/hyphenate/chat/EMGroup;

    invoke-direct {v1, v0}, Lcom/hyphenate/chat/EMGroup;-><init>(Lcom/hyphenate/chat/adapter/EMAGroup;)V

    move-object v0, v1

    :goto_0
    return-object v0

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getGroupFromServer(Ljava/lang/String;)Lcom/hyphenate/chat/EMGroup;
    .locals 3

    if-eqz p1, :cond_0

    invoke-virtual {p1}, Ljava/lang/String;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    new-instance v0, Lcom/hyphenate/exceptions/HyphenateException;

    const/16 v1, 0x258

    const-string/jumbo v2, "group id is null or empty"

    invoke-direct {v0, v1, v2}, Lcom/hyphenate/exceptions/HyphenateException;-><init>(ILjava/lang/String;)V

    throw v0

    :cond_1
    new-instance v0, Lcom/hyphenate/chat/adapter/EMAError;

    invoke-direct {v0}, Lcom/hyphenate/chat/adapter/EMAError;-><init>()V

    iget-object v1, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    const/4 v2, 0x1

    invoke-virtual {v1, p1, v0, v2}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->fetchGroupSpecification(Ljava/lang/String;Lcom/hyphenate/chat/adapter/EMAError;Z)Lcom/hyphenate/chat/adapter/EMAGroup;

    move-result-object v1

    invoke-direct {p0, v0}, Lcom/hyphenate/chat/EMGroupManager;->handleError(Lcom/hyphenate/chat/adapter/EMAError;)V

    new-instance v0, Lcom/hyphenate/chat/EMGroup;

    invoke-direct {v0, v1}, Lcom/hyphenate/chat/EMGroup;-><init>(Lcom/hyphenate/chat/adapter/EMAGroup;)V

    return-object v0
.end method

.method declared-synchronized getGroupsFromServer()Ljava/util/List;
    .locals 4

    monitor-enter p0

    :try_start_0
    new-instance v0, Lcom/hyphenate/chat/adapter/EMAError;

    invoke-direct {v0}, Lcom/hyphenate/chat/adapter/EMAError;-><init>()V

    iget-object v1, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    invoke-virtual {v1, v0}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->fetchAllMyGroups(Lcom/hyphenate/chat/adapter/EMAError;)Ljava/util/List;

    move-result-object v1

    invoke-direct {p0, v0}, Lcom/hyphenate/chat/EMGroupManager;->handleError(Lcom/hyphenate/chat/adapter/EMAError;)V

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/chat/adapter/EMAGroup;

    new-instance v3, Lcom/hyphenate/chat/EMGroup;

    invoke-direct {v3, v0}, Lcom/hyphenate/chat/EMGroup;-><init>(Lcom/hyphenate/chat/adapter/EMAGroup;)V

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0

    :cond_0
    monitor-exit p0

    return-object v2
.end method

.method public declared-synchronized getJoinedGroupsFromServer()Ljava/util/List;
    .locals 1

    monitor-enter p0

    :try_start_0
    invoke-virtual {p0}, Lcom/hyphenate/chat/EMGroupManager;->getGroupsFromServer()Ljava/util/List;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result-object v0

    monitor-exit p0

    return-object v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public getPublicGroupsFromServer(ILjava/lang/String;)Lcom/hyphenate/chat/EMCursorResult;
    .locals 2

    new-instance v0, Lcom/hyphenate/chat/adapter/EMAError;

    invoke-direct {v0}, Lcom/hyphenate/chat/adapter/EMAError;-><init>()V

    iget-object v1, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    invoke-virtual {v1, p2, p1, v0}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->fetchPublicGroupsWithCursor(Ljava/lang/String;ILcom/hyphenate/chat/adapter/EMAError;)Lcom/hyphenate/chat/EMCursorResult;

    move-result-object v1

    invoke-direct {p0, v0}, Lcom/hyphenate/chat/EMGroupManager;->handleError(Lcom/hyphenate/chat/adapter/EMAError;)V

    return-object v1
.end method

.method public inviteUser(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
    .locals 3

    new-instance v0, Lcom/hyphenate/chat/adapter/EMAError;

    invoke-direct {v0}, Lcom/hyphenate/chat/adapter/EMAError;-><init>()V

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    invoke-static {v1, p2}, Ljava/util/Collections;->addAll(Ljava/util/Collection;[Ljava/lang/Object;)Z

    iget-object v2, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    invoke-virtual {v2, p1, v1, p3, v0}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->addGroupMembers(Ljava/lang/String;Ljava/util/List;Ljava/lang/String;Lcom/hyphenate/chat/adapter/EMAError;)Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-direct {p0, v0}, Lcom/hyphenate/chat/EMGroupManager;->handleError(Lcom/hyphenate/chat/adapter/EMAError;)V

    return-void
.end method

.method public joinGroup(Ljava/lang/String;)V
    .locals 4

    new-instance v0, Lcom/hyphenate/chat/adapter/EMAError;

    invoke-direct {v0}, Lcom/hyphenate/chat/adapter/EMAError;-><init>()V

    iget-object v1, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    const/4 v2, 0x0

    invoke-virtual {v1, p1, v0, v2}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->fetchGroupSpecification(Ljava/lang/String;Lcom/hyphenate/chat/adapter/EMAError;Z)Lcom/hyphenate/chat/adapter/EMAGroup;

    move-result-object v1

    invoke-direct {p0, v0}, Lcom/hyphenate/chat/EMGroupManager;->handleError(Lcom/hyphenate/chat/adapter/EMAError;)V

    invoke-virtual {v1}, Lcom/hyphenate/chat/adapter/EMAGroup;->groupSetting()Lcom/hyphenate/chat/adapter/EMAGroupSetting;

    move-result-object v2

    if-nez v2, :cond_0

    new-instance v0, Lcom/hyphenate/exceptions/HyphenateException;

    invoke-direct {v0}, Lcom/hyphenate/exceptions/HyphenateException;-><init>()V

    throw v0

    :cond_0
    invoke-virtual {v1}, Lcom/hyphenate/chat/adapter/EMAGroup;->groupSetting()Lcom/hyphenate/chat/adapter/EMAGroupSetting;

    move-result-object v2

    invoke-virtual {v2}, Lcom/hyphenate/chat/adapter/EMAGroupSetting;->style()I

    move-result v2

    const/4 v3, 0x3

    if-ne v2, v3, :cond_2

    iget-object v1, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    invoke-virtual {v1, p1, v0}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->joinPublicGroup(Ljava/lang/String;Lcom/hyphenate/chat/adapter/EMAError;)Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-direct {p0, v0}, Lcom/hyphenate/chat/EMGroupManager;->handleError(Lcom/hyphenate/chat/adapter/EMAError;)V

    :cond_1
    :goto_0
    return-void

    :cond_2
    invoke-virtual {v1}, Lcom/hyphenate/chat/adapter/EMAGroup;->groupSetting()Lcom/hyphenate/chat/adapter/EMAGroupSetting;

    move-result-object v1

    invoke-virtual {v1}, Lcom/hyphenate/chat/adapter/EMAGroupSetting;->style()I

    move-result v1

    const/4 v2, 0x2

    if-ne v1, v2, :cond_1

    iget-object v1, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    iget-object v2, p0, Lcom/hyphenate/chat/EMGroupManager;->mClient:Lcom/hyphenate/chat/EMClient;

    invoke-virtual {v2}, Lcom/hyphenate/chat/EMClient;->getCurrentUser()Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v3, "hello"

    invoke-virtual {v1, p1, v2, v3, v0}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->applyJoinPublicGroup(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/hyphenate/chat/adapter/EMAError;)Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-direct {p0, v0}, Lcom/hyphenate/chat/EMGroupManager;->handleError(Lcom/hyphenate/chat/adapter/EMAError;)V

    goto :goto_0
.end method

.method public leaveGroup(Ljava/lang/String;)V
    .locals 2

    new-instance v0, Lcom/hyphenate/chat/adapter/EMAError;

    invoke-direct {v0}, Lcom/hyphenate/chat/adapter/EMAError;-><init>()V

    iget-object v1, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    invoke-virtual {v1, p1, v0}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->leaveGroup(Ljava/lang/String;Lcom/hyphenate/chat/adapter/EMAError;)Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v1

    invoke-virtual {v1}, Lcom/hyphenate/chat/EMClient;->chatManager()Lcom/hyphenate/chat/EMChatManager;

    move-result-object v1

    iget-object v1, v1, Lcom/hyphenate/chat/EMChatManager;->caches:Ljava/util/Map;

    invoke-interface {v1, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    invoke-direct {p0, v0}, Lcom/hyphenate/chat/EMGroupManager;->handleError(Lcom/hyphenate/chat/adapter/EMAError;)V

    return-void
.end method

.method public declared-synchronized loadAllGroups()V
    .locals 1

    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->loadAllMyGroupsFromDB()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method onLogout()V
    .locals 0

    return-void
.end method

.method public removeGroupChangeListener(Lcom/hyphenate/EMGroupChangeListener;)V
    .locals 3

    sget-object v0, Lcom/hyphenate/chat/EMGroupManager;->TAG:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "remove group change listener:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroupManager;->groupChangeListeners:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    return-void
.end method

.method public removeUserFromGroup(Ljava/lang/String;Ljava/lang/String;)V
    .locals 3

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    new-instance v1, Lcom/hyphenate/chat/adapter/EMAError;

    invoke-direct {v1}, Lcom/hyphenate/chat/adapter/EMAError;-><init>()V

    invoke-interface {v0, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v2, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    invoke-virtual {v2, p1, v0, v1}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->removeGroupMembers(Ljava/lang/String;Ljava/util/List;Lcom/hyphenate/chat/adapter/EMAError;)Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-direct {p0, v1}, Lcom/hyphenate/chat/EMGroupManager;->handleError(Lcom/hyphenate/chat/adapter/EMAError;)V

    iget-object v0, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    const/4 v2, 0x1

    invoke-virtual {v0, p1, v1, v2}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->fetchGroupSpecification(Ljava/lang/String;Lcom/hyphenate/chat/adapter/EMAError;Z)Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-direct {p0, v1}, Lcom/hyphenate/chat/EMGroupManager;->handleError(Lcom/hyphenate/chat/adapter/EMAError;)V

    return-void
.end method

.method public setAutoAcceptInvitation(Z)V
    .locals 0

    return-void
.end method

.method public unblockGroupMessage(Ljava/lang/String;)V
    .locals 3

    sget-object v0, Lcom/hyphenate/chat/EMGroupManager;->TAG:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "try to unblock group msg:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    new-instance v0, Lcom/hyphenate/chat/adapter/EMAError;

    invoke-direct {v0}, Lcom/hyphenate/chat/adapter/EMAError;-><init>()V

    iget-object v1, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    invoke-virtual {v1, p1, v0}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->unblockGroupMessage(Ljava/lang/String;Lcom/hyphenate/chat/adapter/EMAError;)Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-direct {p0, v0}, Lcom/hyphenate/chat/EMGroupManager;->handleError(Lcom/hyphenate/chat/adapter/EMAError;)V

    return-void
.end method

.method public unblockUser(Ljava/lang/String;Ljava/lang/String;)V
    .locals 3

    sget-object v0, Lcom/hyphenate/chat/EMGroupManager;->TAG:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "unblock user groupid:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, " username:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    new-instance v0, Lcom/hyphenate/chat/adapter/EMAError;

    invoke-direct {v0}, Lcom/hyphenate/chat/adapter/EMAError;-><init>()V

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    invoke-interface {v1, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v2, p0, Lcom/hyphenate/chat/EMGroupManager;->emaObject:Lcom/hyphenate/chat/adapter/EMAGroupManager;

    invoke-virtual {v2, p1, v1, v0}, Lcom/hyphenate/chat/adapter/EMAGroupManager;->unblockGroupMembers(Ljava/lang/String;Ljava/util/List;Lcom/hyphenate/chat/adapter/EMAError;)Lcom/hyphenate/chat/adapter/EMAGroup;

    invoke-direct {p0, v0}, Lcom/hyphenate/chat/EMGroupManager;->handleError(Lcom/hyphenate/chat/adapter/EMAError;)V

    return-void
.end method
